<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

require_once APPPATH."third_party/MX/Lang.php";

class MY_Lang extends MX_Lang {
	
	function __construct(){
		parent::__construct();
	}
	/**
     * Translate
     *
     * @param   array $args
     * @return  string
     */
	function translate($args){
		$text = array_shift($args);
		if (is_string($text) && ''==$text
            || is_null($text)
            || is_bool($text) && false===$text
            || is_object($text)) {
            return '';
        }
        $result = @vsprintf($text, $args);
        return $result;
	}
}